"""
PROJECT: code
FILE: __init__.py.py
AUTHOR: wensen
CREATE: 2022-02-28 
"""
import os
import django
from celery import Celery

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_celery_demo.settings")
django.setup()
app = Celery('celery_task')  # 创建 Celery 实例
app.config_from_object('celery_task.config')  # 加载配置模块

# # 自动加载任务
# app.autodiscover_tasks()
